package com.tianbo.elfii.client.common;

import java.awt.*;
import javax.swing.*;

import com.tianbo.elfii.client.a.ElfiiItemA0Menu;
import com.tianbo.elfii.client.b.ElfiiItemB0Menu;
import com.tianbo.elfii.client.c.ElfiiItemC0Menu;
import com.tianbo.elfii.client.constant.otherwindow.TrainningItemChoiceWindowConstant;
import com.tianbo.elfii.client.d.ElfiiItemD0Menu;
import com.tianbo.elfii.client.trainningwindow.allitemchoice.TrainningItemChoiceUtil;

/**  <pre>
     <b>类功能描述：</b><pre>
     完成 训练项目选择 功能要求。
     </pre>
     @version 1.0.1
     @author 高伟 
*/

public class ElfiiCommonGameSelect extends ElfiiCommonBasicGameSelect {

    public void dealOkButton(){
    	
    	ElfiiCommonConfigUtil.isNoNetPop = false;
        if (gameAButton.isSelected()){
            /** 下面是调用训练A的入口代码 */
      
            ElfiiItemA0Menu menu = new ElfiiItemA0Menu();
            menu.setRunInfo(runInfo);
            menu.showThisWindow();
        }
        if (gameBButton.isSelected()){
            ElfiiItemB0Menu menu = new ElfiiItemB0Menu();
            menu.setRunInfo(runInfo);
            menu.showThisWindow();
        }
        if (gameCButton.isSelected()){
            ElfiiItemC0Menu menu = new ElfiiItemC0Menu();
            menu.setRunInfo(runInfo);
            menu.showThisWindow();
        }
        if (gameDButton.isSelected()){
            ElfiiItemD0Menu menu = new ElfiiItemD0Menu();
            menu.setRunInfo(runInfo);
            menu.showThisWindow();
        }
        if (gameEButton.isSelected()){
            TrainningItemChoiceUtil oneTrainningItemChoiceUtil=null;
            oneTrainningItemChoiceUtil=new TrainningItemChoiceUtil();
            oneTrainningItemChoiceUtil.showSomeOneTrainningItemMainMenu(TrainningItemChoiceWindowConstant.CHOICE_TRAINNING_ITEME);
        }
        if (gameFButton.isSelected()){
            com.tianbo.elfii.client.e.trainningwindow.trainningitemf.TrainningItemFMenuWindow someOneTrainningItemMenuWindow=null;    
            someOneTrainningItemMenuWindow=new com.tianbo.elfii.client.e.trainningwindow.trainningitemf.TrainningItemFMenuWindow();                    
            someOneTrainningItemMenuWindow.showThisWindowWithTestPracticeButton();
        }
        if (gameGButton.isSelected()){
            com.tianbo.elfii.client.g.trainningwindow.trainningitemf.TrainningItemFMenuWindow someOneTrainningItemMenuWindow=null;    
            someOneTrainningItemMenuWindow=new com.tianbo.elfii.client.g.trainningwindow.trainningitemf.TrainningItemFMenuWindow();                    
            someOneTrainningItemMenuWindow.showThisWindowWithTestPracticeButton();
            
        }
        if (gameHButton.isSelected()){
            TrainningItemChoiceUtil oneTrainningItemChoiceUtil=null;
            oneTrainningItemChoiceUtil=new TrainningItemChoiceUtil();
            oneTrainningItemChoiceUtil.showSomeOneTrainningItemMainMenu(TrainningItemChoiceWindowConstant.CHOICE_TRAINNING_ITEMH);
        }
        if (gameIButton.isSelected()){
            TrainningItemChoiceUtil oneTrainningItemChoiceUtil=null;
            oneTrainningItemChoiceUtil=new TrainningItemChoiceUtil();
            oneTrainningItemChoiceUtil.showSomeOneTrainningItemMainMenu(TrainningItemChoiceWindowConstant.CHOICE_TRAINNING_ITEMI);
        }
        if (gameJButton.isSelected()){
            TrainningItemChoiceUtil oneTrainningItemChoiceUtil=null;
            oneTrainningItemChoiceUtil=new TrainningItemChoiceUtil();
            oneTrainningItemChoiceUtil.showSomeOneTrainningItemMainMenu(TrainningItemChoiceWindowConstant.CHOICE_TRAINNING_ITEMJ);
        }

        if (gameKButton.isSelected()){
           com.tianbo.elfii.client.k.other.panel.MenuPanel someOneTrainningItemMenuWindow=new com.tianbo.elfii.client.k.other.panel.MenuPanel();                      
           someOneTrainningItemMenuWindow.showThisWindowWithTestPracticeButton();
        }

        if (gameLButton.isSelected()){
            TrainningItemChoiceUtil oneTrainningItemChoiceUtil=null;
            oneTrainningItemChoiceUtil=new TrainningItemChoiceUtil();
            oneTrainningItemChoiceUtil.showSomeOneTrainningItemMainMenu(TrainningItemChoiceWindowConstant.CHOICE_TRAINNING_ITEML);
        }
        if (gameMButton.isSelected()){
            TrainningItemChoiceUtil oneTrainningItemChoiceUtil=null;
            oneTrainningItemChoiceUtil=new TrainningItemChoiceUtil();
            oneTrainningItemChoiceUtil.showSomeOneTrainningItemMainMenu(TrainningItemChoiceWindowConstant.CHOICE_TRAINNING_ITEMM);
        }
        if (gameNButton.isSelected()){
            TrainningItemChoiceUtil oneTrainningItemChoiceUtil=null;
            oneTrainningItemChoiceUtil=new TrainningItemChoiceUtil();
            oneTrainningItemChoiceUtil.showSomeOneTrainningItemMainMenu(TrainningItemChoiceWindowConstant.CHOICE_TRAINNING_ITEMN);
        }
    }
}
